wayland/surface: Reset last sent min/max size when hiding
authorJonas Ådahl <jadahl@gmail.com>
Fri, 4 Dec 2020 17:39:22 +0000 (18:39 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:29 +0000 (20:37 +0100)
As with the window geometry, the last sent min/max values must be reset
so they are sent again next time the surface is shown.

gdk/wayland/gdksurface-wayland.c

index d5e777638c6815bd18c1c702d2603001357d8013..6ad40c39cdca3b5e6182dbf3b52a7894684d4163 100644 (file)
@@ -2958,6 +2958,10 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface)
   unset_transient_for_exported (surface);
 
   impl->last_sent_window_geometry = (GdkRectangle) { 0 };
+  impl->last_sent_min_width = 0;
+  impl->last_sent_min_height = 0;
+  impl->last_sent_max_width = 0;
+  impl->last_sent_max_height = 0;
 
   _gdk_wayland_surface_clear_saved_size (surface);
   impl->mapped = FALSE;